package com.wsdcd.zlg.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class PageParameter {
    private Integer page;
    private Integer limit;
    private String likeKey;
    private String likeValue;

    public PageParameter(int page,int limit){
        this.page = (page-1)*limit;
        this.limit = limit;
    }

    public PageParameter(int page,int limit,String likeKey,String likeValue){
        this.page = (page-1)*limit;
        this.limit = limit;
        this.likeKey = likeKey;
        this.likeValue = likeValue;
    }

}
